<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Java项目开发笔记_01 | MoneyLee’s Blog</title><meta name="author" content="李财"><meta name="copyright" content="李财"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="Java项目开发笔记01-03的源码在: gitee 项目开发技术栈 后端开发工具和环境：JDK8 + IDEA + Maven3.x 后端技术栈： Springboot2.x + Spring5 +Mybatis3.x + Mysql + JWT + Guava缓存 + Jmeter5.x压测 前端技术栈：VueCli4.3 + Vue2.6 + VueX + Axios + 移动端CUBE-">
<meta property="og:type" content="article">
<meta property="og:title" content="Java项目开发笔记_01">
<meta property="og:url" content="https://moneylee.gitee.io/myblog/2020/06/06/Java%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0_01/index.html">
<meta property="og:site_name" content="MoneyLee’s Blog">
<meta property="og:description" content="Java项目开发笔记01-03的源码在: gitee 项目开发技术栈 后端开发工具和环境：JDK8 + IDEA + Maven3.x 后端技术栈： Springboot2.x + Spring5 +Mybatis3.x + Mysql + JWT + Guava缓存 + Jmeter5.x压测 前端技术栈：VueCli4.3 + Vue2.6 + VueX + Axios + 移动端CUBE-">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg">
<meta property="article:published_time" content="2020-06-06T11:12:02.000Z">
<meta property="article:modified_time" content="2020-08-07T06:10:13.000Z">
<meta property="article:author" content="李财">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg"><link rel="shortcut icon" href="/myblog/img/favicon.png"><link rel="canonical" href="https://moneylee.gitee.io/myblog/2020/06/06/Java%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0_01/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/myblog/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/myblog/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Java项目开发笔记_01',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2020-08-07 14:10:13'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.0.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data is-center"><div class="data-item"><a href="/myblog/archives/"><div class="headline">文章</div><div class="length-num">46</div></a></div><div class="data-item"><a href="/myblog/tags/"><div class="headline">标签</div><div class="length-num">0</div></a></div><div class="data-item"><a href="/myblog/categories/"><div class="headline">分类</div><div class="length-num">10</div></a></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/myblog/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 影音</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/myblog/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/myblog/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/myblog/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/myblog/">MoneyLee’s Blog</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/myblog/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 影音</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/myblog/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/myblog/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/myblog/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/myblog/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Java项目开发笔记_01</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2020-06-06T11:12:02.000Z" title="发表于 2020-06-06 19:12:02">2020-06-06</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2020-08-07T06:10:13.000Z" title="更新于 2020-08-07 14:10:13">2020-08-07</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/myblog/categories/Java/">Java</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Java项目开发笔记_01"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><hr>
<p><strong>Java项目开发笔记01-03的源码在</strong>: <a target="_blank" rel="noopener" href="https://gitee.com/moneylee/java_learning">gitee</a></p>
<h3 id="项目开发技术栈"><a href="#项目开发技术栈" class="headerlink" title="项目开发技术栈"></a>项目开发技术栈</h3><ul>
<li><h4 id="后端开发工具和环境：JDK8-IDEA-Maven3-x"><a href="#后端开发工具和环境：JDK8-IDEA-Maven3-x" class="headerlink" title="后端开发工具和环境：JDK8 + IDEA + Maven3.x"></a>后端开发工具和环境：JDK8 + IDEA + Maven3.x</h4></li>
<li><h4 id="后端技术栈：-Springboot2-x-Spring5-Mybatis3-x-Mysql-JWT-Guava缓存-Jmeter5-x压测"><a href="#后端技术栈：-Springboot2-x-Spring5-Mybatis3-x-Mysql-JWT-Guava缓存-Jmeter5-x压测" class="headerlink" title="后端技术栈： Springboot2.x + Spring5 +Mybatis3.x + Mysql + JWT + Guava缓存 + Jmeter5.x压测"></a>后端技术栈： Springboot2.x + Spring5 +Mybatis3.x + Mysql + JWT + Guava缓存 + Jmeter5.x压测</h4></li>
<li><h4 id="前端技术栈：VueCli4-3-Vue2-6-VueX-Axios-移动端CUBE-UI框架-VSCode"><a href="#前端技术栈：VueCli4-3-Vue2-6-VueX-Axios-移动端CUBE-UI框架-VSCode" class="headerlink" title="前端技术栈：VueCli4.3 + Vue2.6 + VueX + Axios + 移动端CUBE-UI框架 + VSCode"></a>前端技术栈：VueCli4.3 + Vue2.6 + VueX + Axios + 移动端CUBE-UI框架 + VSCode</h4></li>
<li><h4 id="部署：华为云Centos7-Nginx静态文件服务器-Nginx部署后端双节点-域名配置解析"><a href="#部署：华为云Centos7-Nginx静态文件服务器-Nginx部署后端双节点-域名配置解析" class="headerlink" title="部署：华为云Centos7 + Nginx静态文件服务器 + Nginx部署后端双节点 + 域名配置解析"></a>部署：华为云Centos7 + Nginx静态文件服务器 + Nginx部署后端双节点 + 域名配置解析</h4></li>
</ul>
<hr>
<p>###Spring5的简单学习</p>
<h4 id="什么是注解："><a href="#什么是注解：" class="headerlink" title="什么是注解："></a>什么是注解：</h4><ul>
<li>Java注解是附加在代码中的一些元信息， 用于一些工具在编译，运行时进行解析和使用，起到说明配置的功能</li>
<li>注解本质上继承 Annotation接口，我们可以通过反射获取注解的相关信息，从而做些逻辑操作</li>
<li>springboot里面大量使用了注解，@Controller、 @RestController、 @service、 @Autowire 等</li>
</ul>
<h4 id="什么是Spring框架："><a href="#什么是Spring框架：" class="headerlink" title="什么是Spring框架："></a>什么是Spring框架：</h4><ul>
<li><p>轻量级的 DI / IoC 和 AOP容器的开源框架</p>
</li>
<li><p>有啥好处：</p>
<ul>
<li><p>管理创建和组装对象之间的依赖关系， 加了Spring注解的类会自动创建一个实例，加到IOC容器里面，然后哪里需要它，就自动赋值过去</p>
<ul>
<li><p>使用前： 手工创建</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">Controller -&gt; Service -&gt; Dao</span><br><span class="line">Usercontroller</span><br><span class="line"><span class="keyword">private</span> UserService useService = <span class="keyword">new</span> UserService();</span><br></pre></td></tr></table></figure></li>
<li><p>使用后：Spring创建， 自动注入</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Controller -&gt; Service -&gt; Dao</span><br><span class="line">Usercontroller</span><br><span class="line"></span><br><span class="line"><span class="meta">@Autowire</span></span><br><span class="line"><span class="keyword">private</span> UserService useService</span><br></pre></td></tr></table></figure></li>
</ul>
</li>
</ul>
</li>
</ul>
<hr>
<h3 id="SpringBoot2-x和SpringCloud微服务的关系"><a href="#SpringBoot2-x和SpringCloud微服务的关系" class="headerlink" title="SpringBoot2.x和SpringCloud微服务的关系"></a>SpringBoot2.x和SpringCloud微服务的关系</h3><table>
<thead>
<tr>
<th align="center">单体应用</th>
<th align="center">微服务</th>
</tr>
</thead>
<tbody><tr>
<td align="center">开发速度慢</td>
<td align="center">易开发、理解和维护</td>
</tr>
<tr>
<td align="center">启动时间长</td>
<td align="center">独立的部署和启动</td>
</tr>
<tr>
<td align="center">依赖庞大</td>
<td align="center">问题：分布式系统的（分布式事务问题）、需要多个服务（服务治理）</td>
</tr>
</tbody></table>
<p><strong>SpringCloud基于SpringBoot 多了几个组件 多了几个依赖和注解  注册中心 网关 服务 鉴权 等等很多模块 例如注册中心可以理解为一个项目 是基于SpringBoot的</strong></p>
<hr>
<h3 id="SpringBoot官网"><a href="#SpringBoot官网" class="headerlink" title="SpringBoot官网"></a>SpringBoot官网</h3><p><a target="_blank" rel="noopener" href="https://spring.io/projects/spring-boot#overview">官方文档</a></p>
<hr>
<h3 id="SpringBoot常用注解"><a href="#SpringBoot常用注解" class="headerlink" title="SpringBoot常用注解"></a>SpringBoot常用注解</h3><h4 id="Controller"><a href="#Controller" class="headerlink" title="@Controller"></a>@Controller</h4><p>作用：用于标记这个类是控制器，返回页面的时候使用，如果要返回JSON，则需要在接口上使用@ResponseBody才可以</p>
<p>####@RestController</p>
<p>作用：用于标记一个类是控制器，返回JSON数据的时候使用，如果使用这个注释，则接口返回数据会被序列化为JSON</p>
<p><strong>所以：@RestController = @Controller + @ResponseBody</strong></p>
<h4 id="RequestMapping"><a href="#RequestMapping" class="headerlink" title="@RequestMapping"></a>@RequestMapping</h4><p>作用：路由映射，用于类上做1级映射；用于某个方法上做子路径</p>
<h4 id="SpringBootApplication"><a href="#SpringBootApplication" class="headerlink" title="@SpringBootApplication"></a>@SpringBootApplication</h4><p>作用：用于标记是SpringBoot应用，里面包含多个子注解，即</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">@SpringBootApplication = @Configuration + @EnableAutoConfiguration + @ComponentScan</span><br><span class="line">@Configuration：主要标注于某个类上，用于Spring扫描注入，一般结合@Bean使用</span><br><span class="line">@EnableAutoConfiguration：启用Spring的自动加载配置，自动载入应用程序所需的Bean</span><br><span class="line">@ComponentScan：告诉Spring扫描包的范围，默认是Application类所在的全部子包，可以指定其它包</span><br><span class="line">@ComponentScan(&#123;&quot;net.xdclass.package1&quot;, &quot;net.xdclass.package2&quot;&#125;)</span><br></pre></td></tr></table></figure>



<hr>
<h3 id="SpringBoot目录结构和静态资源访问"><a href="#SpringBoot目录结构和静态资源访问" class="headerlink" title="SpringBoot目录结构和静态资源访问"></a>SpringBoot目录结构和静态资源访问</h3><ul>
<li><p>目录</p>
<ul>
<li>src/main/java:</li>
<li>src/main/resources:</li>
<li>static:</li>
<li>templates:</li>
<li>config:</li>
<li>resources:</li>
</ul>
</li>
<li><p>同个文件的加载顺序，静态资源文件 Spring Boot 默认会挨个从</p>
<ul>
<li>META/resources &gt;</li>
<li>resources &gt;</li>
<li>static &gt;</li>
<li>public</li>
</ul>
<p>内部寻找是否存相应的资源，如果有就直接返回，不在默认加载的目录则找不到</p>
</li>
<li><p>默认配置</p>
<ul>
<li>spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/</li>
</ul>
</li>
<li><p>基本互联网企业 静态资源文件存储在CDN, HTML, CSS, 图片等</p>
</li>
<li><p>CDN：内容分发网络</p>
</li>
<li><p>文件服务器：阿里云OSS</p>
</li>
</ul>
<hr>
<h3 id="SpringBoot启动方式和部署"><a href="#SpringBoot启动方式和部署" class="headerlink" title="SpringBoot启动方式和部署"></a>SpringBoot启动方式和部署</h3><ul>
<li><p>IDEA开发中启动</p>
<ul>
<li>本地开发中常用</li>
</ul>
</li>
<li><p>外置Tomcat中启动</p>
<ul>
<li>接近淘汰</li>
<li>tomtact版本兼容问题复杂</li>
<li>微服务容器化部署复杂</li>
</ul>
</li>
<li><p>Jar包方式打包启动</p>
<ul>
<li>官方推荐，工具中最常用</li>
<li>步骤：pom文件新增maven插件</li>
</ul>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">build</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">plugins</span>&gt;</span></span><br><span class="line">		<span class="tag">&lt;<span class="name">plugin</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">groupId</span>&gt;</span>org.springframework.boot<span class="tag">&lt;/<span class="name">groupId</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">artifactId</span>&gt;</span>spring-boot-maven-plugin<span class="tag">&lt;/<span class="name">artifactId</span>&gt;</span></span><br><span class="line">		<span class="tag">&lt;/<span class="name">plugin</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;/<span class="name">plugins</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">build</span>&gt;</span></span><br></pre></td></tr></table></figure>

<p>如果没有加，执行 -jar 包，报错如下</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">java -jar in spring-boot-demo-0.0.1-SNAPSHOT.jar</span><br><span class="line">no main manifest attribute, in spring-boot-demo-0.0.1-SNAPSHOT.jar</span><br></pre></td></tr></table></figure></li>
<li><p>必备打包启动命令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">构建：mvn install</span><br><span class="line">构建跳过测试类： mvn install -Dmaven.test.skip=true</span><br><span class="line"></span><br><span class="line">target目录下对应的jar包就是打包后的项目</span><br><span class="line">进到对应的target目录启动 java -jar xxxx.jar 即可</span><br><span class="line"></span><br><span class="line">守护进程启动(后台运行)：nohup java -jar xxxx.jar &amp;</span><br><span class="line">#nohup命令只有linux和mac系统有 </span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
</ul>
<hr>
<h3 id="在线教育项目原型分析"><a href="#在线教育项目原型分析" class="headerlink" title="在线教育项目原型分析"></a>在线教育项目原型分析</h3><ul>
<li><h4 id="项目简介"><a href="#项目简介" class="headerlink" title="项目简介"></a>项目简介</h4><p>在线教育互联网项目，前后端分离，支持高并发访问</p>
</li>
<li><h4 id="需求模块"><a href="#需求模块" class="headerlink" title="需求模块"></a>需求模块</h4><ul>
<li><p>用户注册-登录</p>
</li>
<li><p>视频管理模块CRUD</p>
</li>
<li><p>视频列表查询</p>
</li>
<li><p>全局异常处理</p>
</li>
<li><p>日志统计记录</p>
<p>….</p>
</li>
</ul>
</li>
<li><h4 id="数据查询和存储"><a href="#数据查询和存储" class="headerlink" title="数据查询和存储"></a>数据查询和存储</h4><ul>
<li>前期内存数据库存储-HashMap-ArrayList</li>
<li>后期使用数据库存储</li>
</ul>
</li>
</ul>
<hr>
<h3 id="项目架构搭建-包模块"><a href="#项目架构搭建-包模块" class="headerlink" title="项目架构搭建 包模块"></a>项目架构搭建 包模块</h3><ul>
<li><h4 id="创建项目"><a href="#创建项目" class="headerlink" title="创建项目"></a>创建项目</h4></li>
<li><h4 id="配置启动类"><a href="#配置启动类" class="headerlink" title="配置启动类"></a>配置启动类</h4></li>
<li><h4 id="建立对应的包"><a href="#建立对应的包" class="headerlink" title="建立对应的包"></a>建立对应的包</h4><ul>
<li>controller</li>
<li>service</li>
<li>dao</li>
<li>domain</li>
<li>utils</li>
</ul>
</li>
<li><h4 id="初始化数据开发：视频、章、默认用户信息"><a href="#初始化数据开发：视频、章、默认用户信息" class="headerlink" title="初始化数据开发：视频、章、默认用户信息"></a>初始化数据开发：视频、章、默认用户信息</h4></li>
</ul>
<hr>
<h3 id="SpringBoot2-x内部定制JSON字段"><a href="#SpringBoot2-x内部定制JSON字段" class="headerlink" title="SpringBoot2.x内部定制JSON字段"></a>SpringBoot2.x内部定制JSON字段</h3><ul>
<li>常用框架 阿里 fastjson 谷歌gson</li>
<li>JavaBean序列化为JSON<ul>
<li>性能：jackjson &gt; fastjson &gt; gson &gt; json-lib 同一个结构</li>
<li>jackon、fastjson、gson类库各有所长，各有自己的专长</li>
<li>空间换时间、时间换空间</li>
</ul>
</li>
<li>Jackson处理相关<ul>
<li>指定字段不返回：@JsonIgnore</li>
<li>指定日期格式：@JsonFormat(pattern=”yyyy-MM-dd hh:mm:ss”, local=”zh”, timezone=:”GMT+8”)</li>
<li>空字段不反回：@JsonInclude(Include.NON_NULL)</li>
<li>指定别名：@JsonProperty</li>
</ul>
</li>
<li>开发功能：视频创建时间返回自定义格式；过滤用户敏感信息</li>
</ul>
<hr>
<h3 id="SpringBoot2-x结合dev-tool-实现IDEA项目热部署"><a href="#SpringBoot2-x结合dev-tool-实现IDEA项目热部署" class="headerlink" title="SpringBoot2.x结合dev-tool 实现IDEA项目热部署"></a>SpringBoot2.x结合dev-tool 实现IDEA项目热部署</h3><ul>
<li><p>步骤</p>
<ul>
<li>pom文件添加依赖包</li>
</ul>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dependency</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">groupId</span>&gt;</span>org.springframework.boot<span class="tag">&lt;/<span class="name">groupId</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">artifactId</span>&gt;</span>spring-boot-devtools<span class="tag">&lt;/<span class="name">artifactId</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">optional</span>&gt;</span>true<span class="tag">&lt;/<span class="name">optional</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dependency</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">plugin</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">groupId</span>&gt;</span>org.springframework.boot<span class="tag">&lt;/<span class="name">groupId</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">artifactId</span>&gt;</span>spring-boot-maven-plugin<span class="tag">&lt;/<span class="name">artifactId</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;<span class="name">configuration</span>&gt;</span></span><br><span class="line">				<span class="comment">&lt;!--必须添加这个配置--&gt;</span></span><br><span class="line">				<span class="tag">&lt;<span class="name">fork</span>&gt;</span>true<span class="tag">&lt;/<span class="name">fork</span>&gt;</span></span><br><span class="line">			<span class="tag">&lt;/<span class="name">configuration</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">plugin</span>&gt;</span></span><br></pre></td></tr></table></figure>

<ul>
<li>IDEA配置<ul>
<li>windows和mac一致</li>
</ul>
</li>
</ul>
<p>![image-20200701143456381](/Users/moneylee/Library/Application Support/typora-user-images/image-20200701143456381.png)</p>
<ul>
<li>使用快捷键打开</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">默认快捷键：</span><br><span class="line">	windows: shift + ctrl + alt + /</span><br><span class="line">	mac: shift + command + alt + /</span><br></pre></td></tr></table></figure>

<p><img src="https://tva1.sinaimg.cn/large/007S8ZIlly1ggbh6ngn6fj309t03emxk.jpg" alt="image-20200701145339996"></p>
<p><img src="https://tva1.sinaimg.cn/large/007S8ZIlly1ggbh83098uj30ti0mb0zk.jpg" alt="image-20200701145438979"></p>
<hr>
</li>
</ul>
<h3 id="SpringBoot2-x常见配置文件"><a href="#SpringBoot2-x常见配置文件" class="headerlink" title="SpringBoot2.x常见配置文件"></a>SpringBoot2.x常见配置文件</h3><ul>
<li><p>常见配置文件格式：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">xml、properties、json、yaml</span><br></pre></td></tr></table></figure></li>
<li><p>SpringBoot里常用yml</p>
<ul>
<li>YAML</li>
<li>写YAML要比XML快得多（无需关注标签或引号）不同层次之间的缩进可以使用不同的空格数目</li>
<li>注意：key后面的冒号，后面一定要跟一个空格，树状结构</li>
</ul>
</li>
</ul>
<hr>
<h3 id="SpringBoot注解配置文件映射属性和实体类"><a href="#SpringBoot注解配置文件映射属性和实体类" class="headerlink" title="SpringBoot注解配置文件映射属性和实体类"></a>SpringBoot注解配置文件映射属性和实体类</h3><p><strong>简介：使用@Value注解配置文件自动映射到属性和实体类</strong></p>
<ul>
<li><h4 id="配置文件加载"><a href="#配置文件加载" class="headerlink" title="配置文件加载"></a>配置文件加载</h4><ul>
<li><p>方式一</p>
<ul>
<li>1、Controller上面配置 @PropertySource({“classpath:resource.properties”})</li>
<li>2、增加属性 @Value(“test.name”)  private String name;</li>
</ul>
</li>
<li><p>方式二</p>
<ul>
<li><p>1、添加 @Component注解；</p>
</li>
<li><p>2、使用 @PropertySoure 注解指定配置文件位置；</p>
</li>
<li><p>3、使用 @ConfigurationProperties 注解，设置相关属性；</p>
</li>
<li><p>4、必须 通过注入IOC对象Resource进来，才能在类中使用获取的配置文件值</p>
<p>​        @Autowrie private ServerSettings serverSetting；</p>
</li>
</ul>
</li>
</ul>
<hr>
</li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">李财</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://moneylee.gitee.io/myblog/2020/06/06/Java%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0_01/">https://moneylee.gitee.io/myblog/2020/06/06/Java%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0_01/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://moneylee.gitee.io/myblog" target="_blank">MoneyLee’s Blog</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/myblog/2020/06/07/Java%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0_02/"><img class="prev-cover" src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" onerror="onerror=null;src='/myblog/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">Java项目开发笔记_02</div></div></a></div><div class="next-post pull-right"><a href="/myblog/2020/06/06/Java%20%E5%9F%BA%E4%BA%8ESpringAOP%E5%BF%AB%E9%80%9F%E5%AE%9E%E7%8E%B0%E6%97%A5%E5%BF%97%E6%89%93%E5%8D%B0/"><img class="next-cover" src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" onerror="onerror=null;src='/myblog/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">Java 基于Spring AOP 快速实现日志打印</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="this.onerror=null;this.src='/myblog/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">李财</div><div class="author-info__description">开发者</div></div><div class="card-info-data is-center"><div class="card-info-data-item"><a href="/myblog/archives/"><div class="headline">文章</div><div class="length-num">46</div></a></div><div class="card-info-data-item"><a href="/myblog/tags/"><div class="headline">标签</div><div class="length-num">0</div></a></div><div class="card-info-data-item"><a href="/myblog/categories/"><div class="headline">分类</div><div class="length-num">10</div></a></div></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://gitee.com/moneylee" target="_blank" title="Gitee"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:licai_1024@hotmail.com" target="_blank" title=""><i class="fas fa-envelope"></i></a><a class="social-icon" href="/myblog/img/mywechat.jpg" target="_blank" title=""><i class="fab fa-weixin"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%A1%B9%E7%9B%AE%E5%BC%80%E5%8F%91%E6%8A%80%E6%9C%AF%E6%A0%88"><span class="toc-number">1.</span> <span class="toc-text">项目开发技术栈</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%90%8E%E7%AB%AF%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%E5%92%8C%E7%8E%AF%E5%A2%83%EF%BC%9AJDK8-IDEA-Maven3-x"><span class="toc-number">1.1.</span> <span class="toc-text">后端开发工具和环境：JDK8 + IDEA + Maven3.x</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%90%8E%E7%AB%AF%E6%8A%80%E6%9C%AF%E6%A0%88%EF%BC%9A-Springboot2-x-Spring5-Mybatis3-x-Mysql-JWT-Guava%E7%BC%93%E5%AD%98-Jmeter5-x%E5%8E%8B%E6%B5%8B"><span class="toc-number">1.2.</span> <span class="toc-text">后端技术栈： Springboot2.x + Spring5 +Mybatis3.x + Mysql + JWT + Guava缓存 + Jmeter5.x压测</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%89%8D%E7%AB%AF%E6%8A%80%E6%9C%AF%E6%A0%88%EF%BC%9AVueCli4-3-Vue2-6-VueX-Axios-%E7%A7%BB%E5%8A%A8%E7%AB%AFCUBE-UI%E6%A1%86%E6%9E%B6-VSCode"><span class="toc-number">1.3.</span> <span class="toc-text">前端技术栈：VueCli4.3 + Vue2.6 + VueX + Axios + 移动端CUBE-UI框架 + VSCode</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%83%A8%E7%BD%B2%EF%BC%9A%E5%8D%8E%E4%B8%BA%E4%BA%91Centos7-Nginx%E9%9D%99%E6%80%81%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8-Nginx%E9%83%A8%E7%BD%B2%E5%90%8E%E7%AB%AF%E5%8F%8C%E8%8A%82%E7%82%B9-%E5%9F%9F%E5%90%8D%E9%85%8D%E7%BD%AE%E8%A7%A3%E6%9E%90"><span class="toc-number">1.4.</span> <span class="toc-text">部署：华为云Centos7 + Nginx静态文件服务器 + Nginx部署后端双节点 + 域名配置解析</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BB%80%E4%B9%88%E6%98%AF%E6%B3%A8%E8%A7%A3%EF%BC%9A"><span class="toc-number">1.5.</span> <span class="toc-text">什么是注解：</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BB%80%E4%B9%88%E6%98%AFSpring%E6%A1%86%E6%9E%B6%EF%BC%9A"><span class="toc-number">1.6.</span> <span class="toc-text">什么是Spring框架：</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot2-x%E5%92%8CSpringCloud%E5%BE%AE%E6%9C%8D%E5%8A%A1%E7%9A%84%E5%85%B3%E7%B3%BB"><span class="toc-number">2.</span> <span class="toc-text">SpringBoot2.x和SpringCloud微服务的关系</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot%E5%AE%98%E7%BD%91"><span class="toc-number">3.</span> <span class="toc-text">SpringBoot官网</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot%E5%B8%B8%E7%94%A8%E6%B3%A8%E8%A7%A3"><span class="toc-number">4.</span> <span class="toc-text">SpringBoot常用注解</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Controller"><span class="toc-number">4.1.</span> <span class="toc-text">@Controller</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#RequestMapping"><span class="toc-number">4.2.</span> <span class="toc-text">@RequestMapping</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#SpringBootApplication"><span class="toc-number">4.3.</span> <span class="toc-text">@SpringBootApplication</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84%E5%92%8C%E9%9D%99%E6%80%81%E8%B5%84%E6%BA%90%E8%AE%BF%E9%97%AE"><span class="toc-number">5.</span> <span class="toc-text">SpringBoot目录结构和静态资源访问</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot%E5%90%AF%E5%8A%A8%E6%96%B9%E5%BC%8F%E5%92%8C%E9%83%A8%E7%BD%B2"><span class="toc-number">6.</span> <span class="toc-text">SpringBoot启动方式和部署</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9C%A8%E7%BA%BF%E6%95%99%E8%82%B2%E9%A1%B9%E7%9B%AE%E5%8E%9F%E5%9E%8B%E5%88%86%E6%9E%90"><span class="toc-number">7.</span> <span class="toc-text">在线教育项目原型分析</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%A1%B9%E7%9B%AE%E7%AE%80%E4%BB%8B"><span class="toc-number">7.1.</span> <span class="toc-text">项目简介</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%9C%80%E6%B1%82%E6%A8%A1%E5%9D%97"><span class="toc-number">7.2.</span> <span class="toc-text">需求模块</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%95%B0%E6%8D%AE%E6%9F%A5%E8%AF%A2%E5%92%8C%E5%AD%98%E5%82%A8"><span class="toc-number">7.3.</span> <span class="toc-text">数据查询和存储</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%A1%B9%E7%9B%AE%E6%9E%B6%E6%9E%84%E6%90%AD%E5%BB%BA-%E5%8C%85%E6%A8%A1%E5%9D%97"><span class="toc-number">8.</span> <span class="toc-text">项目架构搭建 包模块</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%88%9B%E5%BB%BA%E9%A1%B9%E7%9B%AE"><span class="toc-number">8.1.</span> <span class="toc-text">创建项目</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E5%90%AF%E5%8A%A8%E7%B1%BB"><span class="toc-number">8.2.</span> <span class="toc-text">配置启动类</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%BB%BA%E7%AB%8B%E5%AF%B9%E5%BA%94%E7%9A%84%E5%8C%85"><span class="toc-number">8.3.</span> <span class="toc-text">建立对应的包</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%88%9D%E5%A7%8B%E5%8C%96%E6%95%B0%E6%8D%AE%E5%BC%80%E5%8F%91%EF%BC%9A%E8%A7%86%E9%A2%91%E3%80%81%E7%AB%A0%E3%80%81%E9%BB%98%E8%AE%A4%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF"><span class="toc-number">8.4.</span> <span class="toc-text">初始化数据开发：视频、章、默认用户信息</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot2-x%E5%86%85%E9%83%A8%E5%AE%9A%E5%88%B6JSON%E5%AD%97%E6%AE%B5"><span class="toc-number">9.</span> <span class="toc-text">SpringBoot2.x内部定制JSON字段</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot2-x%E7%BB%93%E5%90%88dev-tool-%E5%AE%9E%E7%8E%B0IDEA%E9%A1%B9%E7%9B%AE%E7%83%AD%E9%83%A8%E7%BD%B2"><span class="toc-number">10.</span> <span class="toc-text">SpringBoot2.x结合dev-tool 实现IDEA项目热部署</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot2-x%E5%B8%B8%E8%A7%81%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6"><span class="toc-number">11.</span> <span class="toc-text">SpringBoot2.x常见配置文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SpringBoot%E6%B3%A8%E8%A7%A3%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%98%A0%E5%B0%84%E5%B1%9E%E6%80%A7%E5%92%8C%E5%AE%9E%E4%BD%93%E7%B1%BB"><span class="toc-number">12.</span> <span class="toc-text">SpringBoot注解配置文件映射属性和实体类</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%8A%A0%E8%BD%BD"><span class="toc-number">12.1.</span> <span class="toc-text">配置文件加载</span></a></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/myblog/2021/08/14/Flutter%E5%8F%91%E5%B8%83%E4%BB%A3%E7%A0%81%E5%88%B0%E4%BB%93%E5%BA%93/" title="Flutter发布代码到PUB仓库"><img src="http://file.moneylee.top/uPic/flutter.png" onerror="this.onerror=null;this.src='/myblog/img/404.jpg'" alt="Flutter发布代码到PUB仓库"/></a><div class="content"><a class="title" href="/myblog/2021/08/14/Flutter%E5%8F%91%E5%B8%83%E4%BB%A3%E7%A0%81%E5%88%B0%E4%BB%93%E5%BA%93/" title="Flutter发布代码到PUB仓库">Flutter发布代码到PUB仓库</a><time datetime="2021-08-14T12:04:03.000Z" title="发表于 2021-08-14 20:04:03">2021-08-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/myblog/2020/08/21/iOS%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/" title="iOS机器学习"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/myblog/img/404.jpg'" alt="iOS机器学习"/></a><div class="content"><a class="title" href="/myblog/2020/08/21/iOS%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/" title="iOS机器学习">iOS机器学习</a><time datetime="2020-08-21T02:04:10.000Z" title="发表于 2020-08-21 10:04:10">2020-08-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/myblog/2020/08/20/Docker%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%95%B4%E7%90%86/" title="Docker 基础知识整理"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" onerror="this.onerror=null;this.src='/myblog/img/404.jpg'" alt="Docker 基础知识整理"/></a><div class="content"><a class="title" href="/myblog/2020/08/20/Docker%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%95%B4%E7%90%86/" title="Docker 基础知识整理">Docker 基础知识整理</a><time datetime="2020-08-20T12:12:02.000Z" title="发表于 2020-08-20 20:12:02">2020-08-20</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/myblog/2020/08/19/Flutter/" title="Flutter"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/myblog/img/404.jpg'" alt="Flutter"/></a><div class="content"><a class="title" href="/myblog/2020/08/19/Flutter/" title="Flutter">Flutter</a><time datetime="2020-08-19T02:04:03.000Z" title="发表于 2020-08-19 10:04:03">2020-08-19</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/myblog/2020/08/19/iOS%20AR%E5%92%8CARKit4/" title="iOS AR和ARKit4"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/myblog/img/404.jpg'" alt="iOS AR和ARKit4"/></a><div class="content"><a class="title" href="/myblog/2020/08/19/iOS%20AR%E5%92%8CARKit4/" title="iOS AR和ARKit4">iOS AR和ARKit4</a><time datetime="2020-08-19T02:04:03.000Z" title="发表于 2020-08-19 10:04:03">2020-08-19</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022 By 李财</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/myblog/js/utils.js"></script><script src="/myblog/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>